const count = {
	namespaced:true,
	actions: {// 用于响应组件中的动作
		increment(context, value) {
			context.commit('INCREMENT', value)
		},
		decrement(context, value) {
			context.commit('DECREMENT', value)
		}
	},
	mutations: {//用于操作数据(store)
		INCREMENT(state, value) {
			state.sum += value
		},
		DECREMENT(state, value) {
			state.sum -= value
		}
	},
	state: {// 用于存储数据
		sum: 0,
		school: "尚硅谷",
		subject: "web前端"
	},
	getters: {
		bigSum(state) {
			return state.sum * 10
		}
	}
};
export default count;
